<?php
class UrlManager extends CUrlManager
{
    public function createUrl($route,$params=array(),$ampersand='&') {
        if (Yii::app()->language != 'ro') {

            if (isset($params)) {
                $params = array_merge(array('lang' => Yii::app()->language), $params);
            } else {
                $params = array('lang' => Yii::app()->language);
            }
        }

        return parent::createUrl($route, $params, $ampersand);
    }
}
?>
